package com.itheima.wemedia.fagin;

import com.itheima.common.vo.ResultVo;
import com.itheima.wemedia.pojo.WmMaterial;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "leadnews-wemedia",contextId = "findWemediaFegin")
public interface WemediaFegin {
    @GetMapping("/findById/{id}")
    ResultVo findById(@PathVariable Long id);

    @PostMapping("/add/wmUser")
    ResultVo add(@RequestBody WmMaterial wmMaterial);
}
